package com.umpay.dto.merAccess.req.consume;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merAccess.req.CommonReq;
import org.hibernate.validator.constraints.NotEmpty;

	/**
	 * @ClassName: ReqMerBalanceConsume  
	 * @Description: 余额支付请求类
	 * @author liuhaidong  
	 * @date Jan 17, 2018
	 */
	public class ConsumeBalanceReq extends CommonReq{
		
		/**
		 * 平台用户号
		 */
		@NotEmpty(message = "付款方用户号不能为空")		
		@Pattern(message = "付款方用户号格式不正确")
		private String user_id;
		
		/**
		 * 账户类型
		 */	
		@Pattern(message = "账户类型号格式不正确")
		private String acc_type;		

		/**
		 * 商户流水号
		 */
		@NotEmpty(message = "商户流水号不能为空")		
		@Pattern(message = "商户流水号格式不正确")
		private String mer_trace;
		/**
		 * 订单号
		 */
		@NotEmpty(message = "订单号不能为空")		
		@Pattern(message = "订单号格式不正确")
		private String trade_no;	
		/**
		 * 支付金额
		 */
		@NotEmpty(message = "金额不能为空")		
		@Pattern(message = "金额格式不正确")
		private String 	amount;		
		/**
		 * 备注信息
		 */
		private String 	remark;
		/**
		 * 服务器异步通知路径
		 */
		private String notify_url;
				
		public String getAmount() {
			return amount;
		}
		public void setAmount(String amount) {
			this.amount = amount;
		}
		public String getRemark() {
			return remark;
		}
		public void setRemark(String remark) {
			this.remark = remark;
		}
		public String getNotify_url() {
			return notify_url;
		}
		public void setNotify_url(String notify_url) {
			this.notify_url = notify_url;
		}
		public String getMer_trace() {
			return mer_trace;
		}
		public void setMer_trace(String mer_trace) {
			this.mer_trace = mer_trace;
		}
		public String getTrade_no() {
			return trade_no;
		}
		public void setTrade_no(String trade_no) {
			this.trade_no = trade_no;
		}
	
		public String getUser_id() {
			return user_id;
		}
		public void setUser_id(String user_id) {
			this.user_id = user_id;
		}
		public String getAcc_type() {
			return acc_type;
		}
		public void setAcc_type(String acc_type) {
			this.acc_type = acc_type;
		}
		@Override
		public String toString() {
			return "ConsumeBalanceReq [user_id=" + user_id + ", acc_type=" + acc_type + ", mer_trace=" + mer_trace
					+ ", trade_no=" + trade_no + ", amount=" + amount + ", remark=" + remark + ", notify_url="
					+ notify_url + ", mer_id=" + mer_id + ", version=" + version + "]";
		}
		
	}
		